<template>
  <view :style="themeColor">
    <view class="page">
      <view class="flex align-stretch benben-position-layout flex messageDetail_flex_0"
        :style="{height:(88+StatusBarRpx)+'rpx',paddingTop:StatusBarRpx+'rpx', }">
        <view class='flex align-center justify-between flex-sub messageDetail_fd0_0'>
          <view class='flex align-center messageDetail_fd0_0_c0' @tap.stop="handleJumpDiy" data-type="back"
            data-url="1">
            <text class='fu-iconfont2  messageDetail_fd0_0_c0_c0'>&#xE794;</text>
          </view>
          <view class='flex align-center'>
            <text class='messageDetail_fd0_0_c1_c0'>详情</text>
          </view>
          <view class='flex align-center messageDetail_fd0_0_c0'>
          </view>
        </view>

      </view>
      <view :style="{height: (88+StatusBarRpx)+'rpx'}"></view>
      <!---flex布局flex布局开始-->
      <view class="flex flex-direction flex-wrap align-stretch benben-flex-layout messageDetail_flex_1">
        <text class='messageDetail_fd1_0'>{{data.title}}</text>
        <view class='flex flex-wrap align-center messageDetail_fd1_1'>
          <text class='messageDetail_fd1_1_c0'>{{data.create_time}}</text>
        </view>
        <view class="flex flex-direction flex-wrap align-center benben-flex-layout">
          <jyf-parser class='messageDetail_fd1_2' :html="data.content | richTextFormat">
          </jyf-parser>
        </view>
      </view>

      <!---flex布局flex布局结束-->


    </view>
  </view>
</template>
<script>
  import {
    validate
  } from '@/common/utils/validate.js'
  export default {
    components: {},


    data() {
      return {
        "data": {
          "name": "",
          "aid": "",
          "content": "",
          "thumb_img": "",
          "introduce": ""
        },
        aid: ''
      };
    },
    computed: {
      themeColor() {
        return this.$store.getters.themeColor
      },

    },
    watch: {},
    onLoad(options) {
      this.aid = options.aid
      this.getDataFunc()
    },
    onUnload() {

    },
    onReady() {

    },
    onShow() {

    },
    onHide() {

    },
    onResize() {

    },
    onPullDownRefresh() {

    },
    onReachBottom(e) {

    },
    onPageScroll(e) {

    },
    methods: {
      async getDataFunc() {
        uni.showLoading({

        })
        let datadata = await this.$api.post(global.apiUrls.post65222a6f8404a, {
          aid: this.aid
        });

        if (datadata.data.code != 1) {
          this.$message.info(datadata.data.msg);
          return
        }
        let infodata = datadata.data;
        this.data = infodata.data
        uni.hideLoading()
      }
    }
  };
</script>
<style lang="scss" scoped>
  .page {
    width: 100vw;
    overflow-x: hidden;
    min-height: calc(100vh - var(--window-bottom));
    background: var(--benbenbgColor0);
    background-size: 100% auto;
  }

  .messageDetail_flex_0 {
    border-bottom: 1px solid #eee;
    background: var(--benbenbgColor1);
    width: 750rpx;
    height: 88rpx;
    overflow: hidden;
    z-index: 10;
    top: 0rpx;
    background-size: 100% auto !important;
  }

  .messageDetail_fd0_0_c1_c0 {
    font-size: 36rpx;
    font-weight: 500;
    color: #333333;
  }

  .messageDetail_fd0_0_c0_c0 {
    font-size: 32rpx;
    font-weight: 500;
    color: #333;
  }

  .messageDetail_fd0_0_c0 {
    width: 180rpx;
  }

  .messageDetail_fd0_0 {
    padding: 0rpx 32rpx 0rpx 32rpx;
    line-height: 88rpx;
  }

  .messageDetail_flex_1 {
    background: var(--benbenbgColor1);
    margin: 0rpx 0rpx 20rpx 0rpx;
    padding: 25rpx 32rpx 0rpx 32rpx;
    background-size: 100% auto;
  }

  ::v-deep .messageDetail_fd1_2 {
    width: 100%;
    margin: 0rpx 0rpx 32rpx 0rpx;
  }

  .messageDetail_fd1_1_c0 {
    color: #999999;
    font-size: 24rpx;
    font-weight: 400;
    -webkit-line-clamp: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    max-width: 207rpx;
  }

  .messageDetail_fd1_1 {
    margin: 0rpx 0rpx 30rpx 0rpx;
  }

  .messageDetail_fd1_0 {
    color: #333333;
    font-size: 32rpx;
    font-weight: 500;
    margin: 0rpx 0rpx 24rpx 0rpx;
  }
</style>